// form表单配置
export const classesFormConfig = {
  pageName: 'classes',
  // 下拉框的选项，isFuzzyQuery是否为模糊查询选项
  selectOptions: [
    { label: '班级名称', value: 'class_name', isFuzzyQuery: true },
    { label: '所属专业', value: 'major_name', isFuzzyQuery: true },
    { label: '所属学院', value: 'college_name', isFuzzyQuery: true }
  ]
  
}

// table表格配置
export const classesTableProps = {
  pageName: 'classes',
  moduleName: 'collegeManageModule',
  tableColumnProps: [
    { prop: 'class_name', label: '班级名称'},
    { prop: 'major_name', label: '所属专业'},
    { prop: 'college_name', label: '所属学院' },
    { prop: 'handle', label: '操作', width: 150, slotName: 'handle' }
  ],
  storeMommand: {
    pageListGetterName: '',
  }
}

// 表单对话框配置
export const classesModelConfig = {
  pageName: 'classes',
  moduleName: 'collegeManageModule',
  formItems: [
    {
      field: 'class_name',
      type: 'input',
      label: '班级名称',
      placeholder: '请输入班级名称',
      rules: [{ required: true, message: '班级名称不能为空!', trigger: 'blur' }]
    },
    {
      field: 'major_name',
      type: 'cascader',
      label: '所属专业',
      placeholder: '请选择所属专业',
      props: { expandTrigger: 'hover' },
      options: [],
      rules: [{ required: true, message: '所属专业不能为空!', trigger: 'blur' }]
    },
  ],
  labelWidth: '80px',
  colLayout: { span: 24 }
  // itemStyle: {}
}
